package com.zlm.website.service.service.impl;

import com.zlm.common.base.AbstractBaseService;
import com.zlm.common.constants.CommonConstants;
import com.zlm.website.service.dao.SysBannerDao;
import com.zlm.website.service.entity.SysBannerDO;
import com.zlm.website.service.service.SysBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 官网轮播图service实现类
 * @Author: duyufu
 * @Date: 2019/3/18 10:45
 */
@Service
public class SysBannerServiceImpl extends AbstractBaseService<SysBannerDao, SysBannerDO> implements SysBannerService {

    @Autowired
    @Override
    public void setBaseDao(SysBannerDao sysBannerDao) {
        this.baseDao = sysBannerDao;
    }

    @Override
    public List<SysBannerDO> getEntityByType(Integer type) {
        return baseDao.getEntityByType(type);
    }
}
